import 'package:equatable/equatable.dart';
import 'package:backend.core/core/domain/entities/api/web/api_web_one_time_purchased_item_transaction.dart';
import 'package:backend.core/core/domain/entities/api/web/api_web_purchased_item.dart';

class ApiWebOneTimePurchasedItem extends Equatable implements ApiWebPurchasedItem {
  const ApiWebOneTimePurchasedItem({
    required this.purchaseItemSku,
    required this.test,
    required this.transactionId,
    required this.revoked,
    required this.transaction,
  });

  @override
  final String purchaseItemSku;

  @override
  final bool test;

  final String transactionId;
  final bool revoked;
  final ApiWebOneTimePurchasedItemTransaction transaction;

  @override
  List<Object?> get props {
    return [
      purchaseItemSku,
      test,
      transactionId,
      revoked,
      transaction,
    ];
  }
}
